package com.factory.absFactory.pizza;

public abstract class Pizza {
    private String name ;

    //不同种类的披萨需要的原材料不同
    public abstract void prepare();

    public void bake(){
        System.out.println(name+":baking ...");
    }

    public void cut(){
        System.out.println(name+":cuting ...");
    }

    public void box(){
        System.out.println(name+":boxing ...");
    }

    public void setName(String name) {
        this.name = name;
    }
}
